<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01-flex-direction</title>
    <style>
        .box {
            display: flex;
            width: 500px;
            border: red dashed 1px;
            margin-bottom: 30px;
        }

        .box1 {
            flex-direction: row;
        }

        .box-item {
            width: 200px;
            height: 100px;
            line-height: 100px;
            font-size: 50px;
            text-align: center;
            margin: 5px;
            background-color: yellow;
        }

        .box-item2 {
            flex-shrink: 0;
        }

        .box-item3.item2 {
            flex-shrink: 0;
        }

    </style>
</head>
<body>
<div class="box box1">
    <div class="box-item box-item1 item1">1</div>
    <div class="box-item box-item1 item2">2</div>
    <div class="box-item box-item1 item3">3</div>
</div>

<div class="box box1">
    <div class="box-item box-item2 item1">1</div>
    <div class="box-item box-item2 item2">2</div>
    <div class="box-item box-item2 item3">3</div>
</div>

<div class="box box1">
    <div class="box-item box-item3 item1">1</div>
    <div class="box-item box-item3 item2">2</div>
    <div class="box-item box-item3 item3">3</div>
</div>
</body>
</html>
